<input type="hidden" value="{{:totalElements}}" id="_page_totalElements">
<input type="hidden" value="{{:size}}" id="_page_size">
<input type="hidden" id="_click_page" value="{{:carNumber}}">
<ul class="pagination">
	{{if totalPages<6}}
		{{if firstPage || first}}
			<li id="example2_first"><a class="previous disabled" href="javascript:void(0)">|<</a></li>
    		<li id="example2_previous"><a class="previous disabled" href="javascript:void(0)"><</a></li>
		{{else}}
			<li id="example2_first" thispage="0"><a class="previous" href="javascript:void(0)">|<</a></li>
    		<li id="example2_previous" thispage="{{:carNumber-1}}"><a class="previous" href="javascript:void(0)"><</a></li>
		{{/if}}
		{{if totalPages>=1}}
			<li thispage="0"><a class="{{if carNumber+1===1}}active_page{{/if}}" href="javascript:void(0)">1</a></li>
		{{/if}}
		{{if totalPages>=2}}
			<li thispage="1"><a class="{{if carNumber+1===2}}active_page{{/if}}" href="javascript:void(0)">2</a></li>
		{{/if}}
		{{if totalPages>=3}}
			<li thispage="2"><a class="{{if carNumber+1===3}}active_page{{/if}}" href="javascript:void(0)">3</a></li>
		{{/if}}
		{{if totalPages>=4}}
			<li thispage="3"><a class="{{if carNumber+1===4}}active_page{{/if}}" href="javascript:void(0)">4</a></li>
		{{/if}}
		{{if totalPages>=5}}
			<li thispage="4"><a class="{{if carNumber+1===5}}active_page{{/if}}" href="javascript:void(0)">5</a></li>
		{{/if}}
		{{if lastPage || last}}
			<li id="example2_next"><a class="next disabled" href="javascript:void(0)">></a></li>
    		<li id="example2_last"><a class="next disabled" href="javascript:void(0)">>|</a></li>
		{{else}}
			<li id="example2_next" thispage="{{:carNumber+1}}"><a class="next" href="javascript:void(0)">></a></li>
    		<li id="example2_last" thispage="{{:totalPages-1}}"><a class="next" href="javascript:void(0)">>|</a></li>
		{{/if}}
	{{else}}
		{{if firstPage || first}}
			<li id="example2_first"><a class="previous disabled" href="javascript:void(0)">|<</a></li>
    		<li id="example2_previous"><a class="previous disabled" href="javascript:void(0)"><</a></li>
		{{else}}
			<li id="example2_first" thispage="0"><a class="previous" href="javascript:void(0)">|<</a></li>
    		<li id="example2_previous" thispage="{{:carNumber-1}}"><a class="previous" href="javascript:void(0)"><</a></li>
		{{/if}}
			{{if (carNumber+1)<5}}
				{{!--(carNumber+1)表示为当前页,显示前4页的效果--}}
				<li thispage="0"><a class="{{if carNumber+1===1}}active_page{{/if}}" href="javascript:void(0)">1</a></li>
				<li thispage="1"><a class="{{if carNumber+1===2}}active_page{{/if}}" href="javascript:void(0)">2</a></li>
				<li thispage="2"><a class="{{if carNumber+1===3}}active_page{{/if}}" href="javascript:void(0)">3</a></li>
				<li thispage="3"><a class="{{if carNumber+1===4}}active_page{{/if}}" href="javascript:void(0)">4</a></li>
				<li thispage="4"><a class="{{if carNumber+1===5}}active_page{{/if}}" href="javascript:void(0)">5</a></li>
				<li><a class="disabled_noboder" href="javascript:void(0)">...</a></li>
				<li thispage="{{:totalPages-1}}"><a href="javascript:void(0)">{{:totalPages}}</a></li>
			{{else ((carNumber+1)>=5 && (carNumber+1)	< (totalPages-3))}}
				{{!--(carNumber+1)表示为当前页,显示从第5页到总页数-4的页数的效果--}}
				<li thispage="0"><a href="javascript:void(0)">1</a></li>
				<li><a class="disabled_noboder" href="javascript:void(0)">...</a></li>
                <li thispage="{{:carNumber-1}}"><a href="javascript:void(0)">{{:carNumber}}</a></li>
				<li><a class="active_page" href="javascript:void(0)">{{:carNumber+1}}</a></li>
				<li thispage="{{:carNumber+1}}" id="example2_ellipsis"><a href="javascript:void(0)">{{:carNumber+2}}</a></li>
				<li><a class="disabled_noboder" href="javascript:void(0)">...</a></li>
				<li thispage="{{:totalPages-1}}"><a href="javascript:void(0)">{{:totalPages}}</a></li>
			{{else}}
				{{!--(carNumber+1)表示为当前页,显示最后5页的效果--}}
				<li thispage="0"><a href="javascript:void(0)">1</a></li>
				<li><a class="disabled_noboder" href="javascript:void(0)">...</a></li>
				<li thispage="{{:totalPages-5}}"><a class="{{if carNumber+1===totalPages-4}}active{{/if}}" href="javascript:void(0)">{{:totalPages-4}}</a></li>
				<li thispage="{{:totalPages-4}}"><a class="{{if carNumber+1===totalPages-3}}active{{/if}}" href="javascript:void(0)">{{:totalPages-3}}</a></li>
				<li thispage="{{:totalPages-3}}"><a class="{{if carNumber+1===totalPages-2}}active{{/if}}" href="javascript:void(0)">{{:totalPages-2}}</a></li>
				<li thispage="{{:totalPages-2}}"><a class="{{if carNumber+1===totalPages-1}}active{{/if}}" href="javascript:void(0)">{{:totalPages-1}}</a></li>
				<li thispage="{{:totalPages-1}}"><a class="{{if carNumber+1===totalPages}}active{{/if}}" href="javascript:void(0)">{{:totalPages}}</a></li>
			{{/if}}
			{{if lastPage || last}}
				<li id="example2_next"><a class="next disabled" href="javascript:void(0)">></a></li>
    			<li id="example2_last"><a class="next disabled" href="javascript:void(0)">>|</a></li>
			{{else}}
				<li id="example2_next" thispage="{{:carNumber+1}}"><a class="next" href="javascript:void(0)">></a></li>
    			<li id="example2_last" thispage="{{:totalPages-1}}"><a class="next" href="javascript:void(0)">>|</a></li>
			{{/if}}
	{{/if}}
    <li style="padding: 0 10px;">到<input type="text" class="page_num_input" />页</li>
    <li id="turn_page"><input type="button" value="确定"></li>
</ul>